import request from './index'

export const doSiteList = () => {
  return request.ajax({
    url: '/Area/GetSiteList',
    type: 'GET',
    noLogin: true,
    page: '/pages/tabbar/home'
  })
}

export const doArea = (page?: string) => {
  return request.ajax({
    url: '/Area',
    type: 'GET',
    noLogin: true,
    page: page
  })
}

export const doBanner = (code: string) => {
  return request.ajax({
    url: '/Banner',
    type: 'GET',
    page: '/pages/tabbar/home',
    noLogin: true,
    data: {
      code
    }
  })
}

export const doStatistics = () => {
  return request.ajax({
    url: '/RoadLine/GetStatistics',
    type: 'GET',
    noLogin: true,
    page: '/pages/tabbar/home'
  })
}

export const doHighQuality = (data: any) => {
  return request.ajax({
    url: '/RoadLine/HighQuality',
    type: 'GET',
    noLogin: true,
    page: '/pages/tabbar/home',
    data
  })
}